package com.fisher.jaxwswebapidemo.controller;

import com.fisher.jaxwswebapidemo.Service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping(value = "/hello")
public class HelloController {
    @Autowired
    private HelloService sayHelloService;

    @GetMapping
    public String sayHello(@RequestParam(name = "n") String yourName) {
        return sayHelloService.sayHello(yourName);
    }
}
